

var yySpine = require('yySpine');
cc.Class({
    extends: cc.Component,

    properties: {
       
        guai: cc.Node,
    },

   

    // onLoad () {},

    start () {
        setTimeout(() => {
            yySpine.playAnimation(this.guai, 'damage', 1, true, () => {
                yySpine.playAnimation(this.guai, 'dead', 1, true, () => {
                    this.guai.scaleX = -1;
                    yySpine.playAnimation(this.guai, 'run', 0, true);
                });
            });
        },2000);
    },

    // update (dt) {},
});
